package com.widetrust.carpro.domain.log;

import java.io.Serializable;

import org.apache.commons.lang.builder.ToStringBuilder;

import com.widetrust.carpro.domain.userright.Users;
import com.widetrust.common.MyCalendar;

public class LogBean implements Serializable{

	private static final long serialVersionUID = 1L;
	private String logIds; 
	private String logOrderId; 
	private String logTime; 
	private String logUser; 
	private String logContext;
	private String logPosId;	
	
	public void buildLogUserTime( Users userBean ){
		this.setLogUser( userBean.getUsern() );
		this.setLogTime( new MyCalendar().getDateTime() );
	}
	
	
	public String toString(){
		return ToStringBuilder.reflectionToString( this );
	}
	
	public String getLogIds() {
		return logIds;
	}

	public void setLogIds(String logIds) {
		this.logIds = logIds;
	}

	public String getLogOrderId() {
		return logOrderId;
	}

	public void setLogOrderId(String logOrderId) {
		this.logOrderId = logOrderId;
	}

	public String getLogTime() {
		return logTime;
	}

	public void setLogTime(String logTime) {
		this.logTime = logTime;
	}

	public String getLogUser() {
		return logUser;
	}

	public void setLogUser(String logUser) {
		this.logUser = logUser;
	}

	public String getLogContext() {
		return logContext;
	}

	public void setLogContext(String logContext) {
		this.logContext = logContext;
	}


	public String getLogPosId() {
		return logPosId;
	}


	public void setLogPosId(String logPosId) {
		this.logPosId = logPosId;
	}
	
}
